package net.jjjshop.common.entity.im;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import net.jjjshop.framework.core.validator.groups.Update;
import java.io.Serializable;

/**
 * 
 *
 * @author xcc
 * @since 2024-04-21
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ImTalk对象")
public class ImTalk implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "不能为空")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("删除标志")
    private Boolean deleteFlag;

    @ApiModelProperty("修改者")
    private String updateBy;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("用户1Id")
    private String userId1;

    @ApiModelProperty("用户2Id")
    private String userId2;

    @ApiModelProperty("用户1名称")
    private String name1;

    @ApiModelProperty("用户2名称")
    private String name2;

    @ApiModelProperty("用户1头像")
    private String face1;

    @ApiModelProperty("用户2头像")
    private String face2;

    @ApiModelProperty("用户1置顶标识")
    private Boolean top1;

    @ApiModelProperty("用户2置顶标识")
    private Boolean top2;

    @ApiModelProperty("用户1禁用标识")
    private Boolean disable1;

    @ApiModelProperty("用户2禁用标识")
    private Boolean disable2;

    @ApiModelProperty("用户1店铺标识")
    private Boolean storeFlag1;

    @ApiModelProperty("用户2店铺标识")
    private Boolean storeFlag2;

    @ApiModelProperty("最后聊天时间")
    private Date lastTalkTime;

    @ApiModelProperty("最后的消息")
    private String lastTalkMessage;

    @ApiModelProperty("最后消息类型")
    private String lastMessageType;

    @ApiModelProperty("聊天Id")
    private String talkId;

    @ApiModelProperty("坐席Id")
    private String tenantId;

    @ApiModelProperty("坐席名称")
    private String tenantName;

}
